/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.datasource.configuration;

import org.apache.shardingsphere.core.yaml.config.sharding.YamlShardingRuleConfiguration;

import java.util.Map;
import java.util.Properties;

/**
 * 分片数据源配置
 *
 * @auther ebert_chan
 */
public class ShardingDataSourceProperties {

    /**
     * 分片数据源
     */
    private Map<String, HikariProperties> nodes;

    /**
     * 分片规则
     */
    private YamlShardingRuleConfiguration rule;

    /**
     * 属性
     */
    private Properties props = new Properties();

    // getter and setter

    public YamlShardingRuleConfiguration getRule() {
        return rule;
    }

    public void setRule(YamlShardingRuleConfiguration rule) {
        this.rule = rule;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public Map<String, HikariProperties> getNodes() {
        return nodes;
    }

    public void setNodes(Map<String, HikariProperties> nodes) {
        this.nodes = nodes;
    }

}
